MailPoet\Segments\WooCommerce A

Total Complexity 58
Dependencies 18
Dependents 7
Total lines 531
Lines of code 388
Logical lines of code 191
Comment lines 58
Methods 17
Properties 12

Methods 17

Method Rating Maintainability Complexity Lines of code
synchronizeRegisteredCustomer()
A
45 12 42
synchronizeGuestCustomer()
A
51 9 27
updateNames()
A
47 8 37
removeOrphanedSubscribers()
S
41 2 63
insertSubscribersFromOrders()
S
50 4 31
insertSubscriberFromOrder()
S
58 3 16
synchronizeCustomers()
S
59 3 15
ensureColumnCollation()
S
60 3 14
updateStatus()
S
53 2 24
insertSubscribers()
S
54 2 20
shouldShowWooCommerceSegment()
S
67 3 8
updateGlobalStatus()
S
52 1 30
needsCollationChange()
S
63 2 11
insertUsersToSegment()
S
60 1 14
unsubscribeUsersFromSegment()
S
61 1 13
__construct()
S
62 1 12
markRegisteredCustomers()
S
62 1 11